//- Copyright (c) 2016 Lucky Byte, Inc.
table.ui.celled.table.very.basic.compact.small
  tbody
    tr
      td.collapsing.right.aligned 序 号
      td.collapsing.positive= record.serial
      td.collapsing.right.aligned UUID
      td.collapsing.positive(colspan="1")= record.uuid
      td.collapsing.right.aligned 创建时间
      td.positive(colspan="7")= record.ctime.format('YYYY-MM-DD HH:mm:ss')
    tr
      td.collapsing.right.aligned 终端编号
      td.collapsing.positive(colspan="1")= record.termid
      td.collapsing.right.aligned 终端密钥
      if userinfo.view_keys && record.tmk && record.tmk.length > 0
        td.collapsing.positive(colspan="1")
          a.tmk.decrypt(href="#" data-decrypted="false")= record.tmk
      else
        td.collapsing.positive(colspan="1")= record.tmk
      td.collapsing.right.aligned MAC 算法
      td.positive(colspan="7")= constant.macalgos[record.macalgo]
    tr
      td.collapsing.right.aligned 隶属商户
      td.collapsing.positive(colspan="3") #{record.mer_name} ｜ 
        span(style="color:grey;")
          | #{record.mer_no} ｜ 
          | #{record.mer_inside ? '平台商户' : '外联商户'} ｜ 
          | #{constant.merch_chnls[record.mer_chnl]}
      td.collapsing.right.aligned 外联终端
      td.positive(colspan="7")= record.mapto_term_id
        if record.mapto_term_id
          a#mapto_term_info(href="#"
            data-mapto-term="#{record.mapto_term}"
            style="margin-left:10px;") 商户信息...

    tr
      td.collapsing.right.aligned 备 注
      td.positive(colspan="11")= record.notes

    if record.ex
      tr
        td.collapsing.right.aligned 最后修改人
        td.collapsing.positive(colspan="1")= record.input_user
        td.collapsing.right.aligned 最后修改时间
        td.collapsing.positive(colspan="1")
          = record.input_time.format('YYYY-MM-DD HH:mm:ss')
        td.collapsing.right.aligned 状 态
        if record.checked
          td.collapsing.left.aligned.positive 复核通过
          td.collapsing.right.aligned 复核人
          td.collapsing.positive(colspan="1")= record.check_user
          td.collapsing.right.aligned 复核时间
          td.positive(colspan="3")= record.check_time.format('YYYY-MM-DD HH:mm:ss')
        else if record.rejected
          td.collapsing.left.aligned.negative 复核拒绝
          td.collapsing.right.aligned 复核人
          td.collapsing.positive(colspan="1")= record.check_user
          td.collapsing.right.aligned 复核时间
          td.positive(colspan="3")= record.check_time.format('YYYY-MM-DD HH:mm:ss')
        else
          td.positive(colspan="7") 等待复核

      if record.checked
        tr
          td.collapsing.right.aligned 预计生效时间
          td.positive(colspan="11")= record.effect_time.format('YYYY-MM-DD HH:mm:ss')
      else if record.rejected
        tr
          td.collapsing.right.aligned 拒绝原因
          td.negative(colspan="11")= record.reject_reason
    else
      tr
        td.collapsing.right.aligned 最后修改人
        td.collapsing.positive(colspan="1")= record.input_user
        td.collapsing.right.aligned 最后修改时间
        td.collapsing.positive(colspan="1")
          = record.input_time.format('YYYY-MM-DD HH:mm:ss')
        td.collapsing.right.aligned 复核人
        td.collapsing.positive(colspan="1")= record.check_user
        td.collapsing.right.aligned 复核时间
        td.collapsing.positive(colspan="1")
          = record.check_time.format('YYYY-MM-DD HH:mm:ss')
        td.collapsing.right.aligned 生效时间
        td.positive(colspan="3")= record.effect_time.format('YYYY-MM-DD HH:mm:ss')
